﻿using System;
using System.ComponentModel.DataAnnotations;
using YNTK.Common.Filter;
using YNTK.Dependency;

namespace YNTK.System.Entitys.Dto.Mechanism
{
    /// <summary>
    /// 查询机构职责/目标请求模型
    /// </summary>
    [SuppressSniffer]
    public class QueryResponsibilityTargetFilterRequestModel: PageBaseRequestModel
    {
        /// <summary>
        /// 机构id
        /// </summary>
        public string mechanismId { get; set; } = string.Empty;

        /// <summary>
        /// 类型(0.职责 1.目标)
        /// </summary>
        [Required(ErrorMessage = "查询标识不能为空")]
        public int type { get; set; }

        /// <summary>
        /// 上传时间-起
        /// </summary>
        public DateTime? startTime { get; set; } = null;

        /// <summary>
        /// 上传时间-止
        /// </summary>
        public DateTime? endTime { get; set; } = null;
    }

    /// <summary>
    /// 机构职责/目标数据传输模型
    /// </summary>
    [SuppressSniffer]
    public class ResponsibilityTargetListDto:CommonFileListDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 机构id
        /// </summary>
        public string mechanismId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public string mechanismName { get; set; }

        /// <summary>
        /// 上传时间
        /// </summary>
        public DateTime? creatorTime { get; set; }

        /// <summary>
        /// 上传用户
        /// </summary>
        public string creatorUserId { get; set; }

        /// <summary>
        /// 上传用户姓名
        /// </summary>
        public string creatorUserName { get; set; }     
    }

    /// <summary>
    /// 添加机构职责/目标请求模型
    /// </summary>
    [SuppressSniffer]
    public class AddResponsibilityTargetRequestModel: CommonFileRequestModel
    {
        /// <summary>
        /// 类型(0.职责 1.目标)
        /// </summary>
        [Required(ErrorMessage = "文件标识不能为空")]
        public int type { get; set; }
    }

}
